package com.nineclock.system.config;

import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@Configuration
@ComponentScan(basePackages = {
        "com.nineclock.common.swagger",
        "com.nineclock.common.exception",
        "com.nineclock.common.sms",
        "com.nineclock.common.oss"
    }
)
@ServletComponentScan(basePackages = {"com.nineclock.common.filter"})
public class ImportConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
